﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;

namespace HelloASPNET.TienIch
{
  public class TienIchWeb
  {
    public static void MsgBox(Page webPage, string msg)
    {
      string msgScript = "<script language='javascript'>" +
          "alert('" + msg +
          "');</script>";

      // Add the JavaScript code to the page.
      webPage.ClientScript.RegisterStartupScript(webPage.GetType(), "msgScript", msgScript);

    }
  }
}